import request from '@/utils/request'

// 查询项目人员信息列表
export function listPersonnel(query) {
    return request({
        url: '/departmentWaterResources/personnel/list',
        method: 'get',
        params: query
    })
}

// 查询项目人员信息详细
export function getPersonnel(id) {
    return request({
        url: '/departmentWaterResources/personnel/' + id,
        method: 'get'
    })
}

// 新增项目人员信息
export function addPersonnel(data) {
    return request({
        url: '/departmentWaterResources/personnel',
        method: 'post',
        data: data
    })
}

// 修改项目人员信息
export function updatePersonnel(data) {
    return request({
        url: '/departmentWaterResources/personnel',
        method: 'put',
        data: data
    })
}

// 删除项目人员信息
export function delPersonnel(id) {
    return request({
        url: '/departmentWaterResources/personnel/' + id,
        method: 'delete'
    })
}

// 新增预期研究的主要技术成果
export function personnelAddOrUpdate(data) {
    return request({
        url: '/departmentWaterResources/personnel/addOrUpdatePersonnel',
        method: 'post',
        data: data
    })
}
